package com.azt.api.pojo;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by LiQZ on 2017/3/15.
 */
public class FinanceApplyReq {

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 1:采购商2：供应商
     */
    private Integer identity;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 联系人姓名
     */
    @NotBlank(message = "请填写联系人姓名")
    private String contactName;

    /**
     * 联系人电话
     */
    @NotBlank(message = "请填写联系人电话")
    @Length(max = 25, message = "联系电话输入过长")
    private String contactTel;

    /**
     * 备注
     */
    private String memo;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getIdentity() {
        return identity;
    }

    public void setIdentity(Integer identity) {
        this.identity = identity;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Override
    public String toString() {
        return "FinanceApplyReq{" +
                "userId=" + userId +
                ", identity=" + identity +
                ", companyName='" + companyName + '\'' +
                ", contactName='" + contactName + '\'' +
                ", contactTel='" + contactTel + '\'' +
                ", memo='" + memo + '\'' +
                '}';
    }
}
